﻿#include "topo_lump.h"

CAGD::TopoLump::TopoLump() : m_body(nullptr)
{
}

CAGD::TopoLump::~TopoLump()
{
    for (auto s : m_shells)
        delete s;
}

CAGD::TopoBody *&CAGD::TopoLump::Body()
{
    return m_body;
}

std::vector<CAGD::TopoShell *> &CAGD::TopoLump::Shells()
{
    return m_shells;
}

CAGD::TopoType CAGD::TopoLump::Type() const
{
    return TopoType::LUMP;
}